package com.heima.article;

import com.heima.article.service.ApArticleService;
import com.heima.article.service.AuthorService;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
@Slf4j
public class PublishOrUpdate {

    //依赖注入
    @Autowired
    private ApArticleService apArticleService;
    @Test
    public void pushOrUpdate(){
        apArticleService.publishArticle(6330);
    }
}
